<!DOCTYPE html>

















































<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

  <meta name="description" content="Javadoc API documentation for Dormancy." />

<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.ico" />
<title>

  DormancyUtils


| Dormancy

</title>
<link href="../../../../assets/doclava-developer-docs.css" rel="stylesheet" type="text/css" />
<link href="../../../../assets/customizations.css" rel="stylesheet" type="text/css" />
<script src="../../../../assets/search_autocomplete.js" type="text/javascript"></script>
<script src="../../../../assets/jquery-resizable.min.js" type="text/javascript"></script>
<script src="../../../../assets/doclava-developer-docs.js" type="text/javascript"></script>
<script src="../../../../assets/prettify.js" type="text/javascript"></script>
<script type="text/javascript">
  setToRoot("../../../", "../../../../assets/");
</script>
<script src="../../../../assets/doclava-developer-reference.js" type="text/javascript"></script>
<script src="../../../../assets/navtree_data.js" type="text/javascript"></script>
<script src="../../../../assets/customizations.js" type="text/javascript"></script>
<noscript>
  <style type="text/css">
    html,body{overflow:auto;}
    #body-content{position:relative; top:0;}
    #doc-content{overflow:visible;border-left:3px solid #666;}
    #side-nav{padding:0;}
    #side-nav .toggle-list ul {display:block;}
    #resize-packages-nav{border-bottom:3px solid #666;}
  </style>
</noscript>
</head>

<body class="">

<div id="header">
    <div id="headerLeft">
    
      <span id="masthead-title">Dormancy</span>
    
    </div>
    <div id="headerRight">
      
  <div id="search" >
      <div id="searchForm">
          <form accept-charset="utf-8" class="gsc-search-box" 
                onsubmit="return submit_search()">
            <table class="gsc-search-box" cellpadding="0" cellspacing="0"><tbody>
                <tr>
                  <td class="gsc-input">
                    <input id="search_autocomplete" class="gsc-input" type="text" size="33" autocomplete="off"
                      title="search developer docs" name="q"
                      value="search developer docs"
                      onFocus="search_focus_changed(this, true)"
                      onBlur="search_focus_changed(this, false)"
                      onkeydown="return search_changed(event, true, '../../../')"
                      onkeyup="return search_changed(event, false, '../../../')" />
                  <div id="search_filtered_div" class="no-display">
                      <table id="search_filtered" cellspacing=0>
                      </table>
                  </div>
                  </td>
                  <td class="gsc-search-button">
                    <input type="submit" value="Search" title="search" id="search-button" class="gsc-search-button" />
                  </td>
                  <td class="gsc-clear-button">
                    <div title="clear results" class="gsc-clear-button">&nbsp;</div>
                  </td>
                </tr></tbody>
              </table>
          </form>
      </div><!-- searchForm -->
  </div><!-- search -->
      
    </div>
</div><!-- header -->


  <div class="g-section g-tpl-240" id="body-content">
    <div class="g-unit g-first side-nav-resizable" id="side-nav">
      <div id="swapper">
        <div id="nav-panels">
          <div id="resize-packages-nav">
            <div id="packages-nav">
              <div id="index-links"><nobr>
                <a href="../../../packages.html"  >Package Index</a> | 
                <a href="../../../classes.html" >Class Index</a></nobr>
              </div>
              <ul>
                
    <li class="api apilevel-">
  <a href="../../../at/dormancy/package-summary.html">at.dormancy</a></li>
    <li class="api apilevel-">
  <a href="../../../at/dormancy/access/package-summary.html">at.dormancy.access</a></li>
    <li class="api apilevel-">
  <a href="../../../at/dormancy/aop/package-summary.html">at.dormancy.aop</a></li>
    <li class="api apilevel-">
  <a href="../../../at/dormancy/persistence/package-summary.html">at.dormancy.persistence</a></li>
    <li class="api apilevel-">
  <a href="../../../at/dormancy/persister/package-summary.html">at.dormancy.persister</a></li>
    <li class="api apilevel-">
  <a href="../../../at/dormancy/persister/callback/package-summary.html">at.dormancy.persister.callback</a></li>
    <li class="api apilevel-">
  <a href="../../../at/dormancy/persister/filter/package-summary.html">at.dormancy.persister.filter</a></li>
    <li class="api apilevel-">
  <a href="../../../at/dormancy/persister/function/package-summary.html">at.dormancy.persister.function</a></li>
    <li class="api apilevel-">
  <a href="../../../at/dormancy/persister/predicate/package-summary.html">at.dormancy.persister.predicate</a></li>
    <li class="selected api apilevel-">
  <a href="../../../at/dormancy/util/package-summary.html">at.dormancy.util</a></li>
              </ul><br/>
            </div> <!-- end packages -->
          </div> <!-- end resize-packages -->
          <div id="classes-nav">
            <ul>
              
              
    <li><h2>Classes</h2>
      <ul>
          <li class="api apilevel-"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html">AbstractDormancyUtils</a>&lt;PU,&nbsp;PC,&nbsp;PMD,&nbsp;PUP&nbsp;extends&nbsp;<a href="../../../at/dormancy/persistence/PersistenceUnitProvider.html">PersistenceUnitProvider</a>&lt;PU,&nbsp;PC,&nbsp;PMD&gt;&gt;</li>
          <li class="api apilevel-"><a href="../../../at/dormancy/util/ClassLookup.html">ClassLookup</a></li>
          <li class="selected api apilevel-"><a href="../../../at/dormancy/util/DormancyUtils.html">DormancyUtils</a></li>
          <li class="api apilevel-"><a href="../../../at/dormancy/util/IntrospectorUtils.html">IntrospectorUtils</a></li>
          <li class="api apilevel-"><a href="../../../at/dormancy/util/JpaProviderUtils.html">JpaProviderUtils</a></li>
      </ul>
    </li>
              
              
              
              
            </ul><br/>
          </div><!-- end classes -->
        </div><!-- end nav-panels -->
        <div id="nav-tree" style="display:none">
          <div id="index-links"><nobr>
            <a href="../../../packages.html"  >Package Index</a> | 
            <a href="../../../classes.html" >Class Index</a></nobr>
          </div>
        </div><!-- end nav-tree -->
      </div><!-- end swapper -->
    </div> <!-- end side-nav -->
    <script>
      if (!isMobile) {
        $("<a href='#' id='nav-swap' onclick='swapNav();return false;' style='font-size:10px;line-height:9px;margin-left:1em;text-decoration:none;'><span id='tree-link'>Use Tree Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigation</span></a>").appendTo("#side-nav");
        chooseDefaultNav();
        if ($("#nav-tree").is(':visible')) {
          init_default_navtree("../../../");
        } else {
          addLoadEvent(function() {
            scrollIntoView("packages-nav");
            scrollIntoView("classes-nav");
          });
        }
        $("#swapper").css({borderBottom:"2px solid #aaa"});
      } else {
        swapNav(); // tree view should be used on mobile
      }
    </script>



<div class="g-unit" id="doc-content">

<div id="api-info-block">



  
   
  
  
  
   
  
  

  
   
  
  
  
  


<div class="sum-details-links">

<div>
<a href="DormancyUtils-source.html">View Source</a>
</div>


Summary:








  <a href="#inhfields">Inherited Fields</a>
  


  &#124; <a href="#pubctors">Ctors</a>
  



  &#124; <a href="#pubmethods">Methods</a>
  


  &#124; <a href="#promethods">Protected Methods</a>
  


  &#124; <a href="#inhmethods">Inherited Methods</a>

&#124; <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a>

</div><!-- end sum-details-links -->
<div class="api-level">
  


  
  

</div>
</div><!-- end api-info-block -->


<!-- ======== START OF CLASS DATA ======== -->

<div id="jd-header">
    public
     
     
    
    class
<h1>DormancyUtils</h1>



  
  
  

  
    extends <a href="../../../at/dormancy/util/AbstractDormancyUtils.html">AbstractDormancyUtils</a>&lt;PU,&nbsp;PC,&nbsp;PMD,&nbsp;PUP&nbsp;extends&nbsp;<a href="../../../at/dormancy/persistence/PersistenceUnitProvider.html">PersistenceUnitProvider</a>&lt;PU,&nbsp;PC,&nbsp;PMD&gt;&gt;<br/>
  
  
  

  
  
  


</div><!-- end header -->

<div id="naMessage"></div>

<div id="jd-content" class="api apilevel-">
<table class="jd-inheritance-table">


    <tr>
         	
        <td colspan="3" class="jd-inheritance-class-cell"><a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">java.lang.Object</a></td>
    </tr>
    

    <tr>
        
            <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
         	
        <td colspan="2" class="jd-inheritance-class-cell"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html">at.dormancy.util.AbstractDormancyUtils</a>&lt;PU,&nbsp;PC,&nbsp;PMD,&nbsp;PUP&nbsp;extends&nbsp;<a href="../../../at/dormancy/persistence/PersistenceUnitProvider.html">at.dormancy.persistence.PersistenceUnitProvider</a>&lt;PU,&nbsp;PC,&nbsp;PMD&gt;&gt;</td>
    </tr>
    

    <tr>
        
            <td class="jd-inheritance-space">&nbsp;</td>
        
            <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
         	
        <td colspan="1" class="jd-inheritance-class-cell">at.dormancy.util.DormancyUtils</td>
    </tr>
    

</table>







<div class="jd-descr">


<h2>Class Overview</h2>
<p>Utility methods for Dormancy support code.</p>





</div><!-- jd-descr -->
















<div class="jd-descr">


<h2>Summary</h2>





















<!-- =========== FIELD SUMMARY =========== -->
<table id="inhfields" class="jd-sumtable"><tr><th>
  <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a>
  <div style="clear:left;">Inherited Fields</div></th></tr>


<tr class="api apilevel-" >
<td colspan="12">

  <a href="#" onclick="return toggleInherited(this, null)" id="inherited-fields-at.dormancy.util.AbstractDormancyUtils" class="jd-expando-trigger closed"
          ><img id="inherited-fields-at.dormancy.util.AbstractDormancyUtils-trigger"
          src="../../../../assets/images/triangle-closed.png"
          class="jd-expando-trigger-img" /></a>From class
<a href="../../../at/dormancy/util/AbstractDormancyUtils.html">at.dormancy.util.AbstractDormancyUtils</a>
<div id="inherited-fields-at.dormancy.util.AbstractDormancyUtils">
  <div id="inherited-fields-at.dormancy.util.AbstractDormancyUtils-list"
        class="jd-inheritedlinks">
  </div>
  <div id="inherited-fields-at.dormancy.util.AbstractDormancyUtils-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    

    
      <tr class="alt-color api apilevel-" >
          <td class="jd-typecol"><nobr>
          protected
          static
          final
          <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/util/Map.html">Map</a>&lt;<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt;,&nbsp;<a href="../../../at/dormancy/access/AbstractPropertyAccessStrategy.html">AbstractPropertyAccessStrategy</a>&gt;</nobr></td>
          <td class="jd-linkcol"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#STRATEGY_MAP">STRATEGY_MAP</a></td>
          <td class="jd-descrcol" width="100%"></td>
      </tr>
      
    
      <tr class=" api apilevel-" >
          <td class="jd-typecol"><nobr>
          protected
          static
          final
          <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&nbsp;extends&nbsp;<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/annotation/Annotation.html">Annotation</a>&gt;</nobr></td>
          <td class="jd-linkcol"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#idClass">idClass</a></td>
          <td class="jd-descrcol" width="100%"></td>
      </tr>
      
    
      <tr class="alt-color api apilevel-" >
          <td class="jd-typecol"><nobr>
          protected
          
          
          PUP&nbsp;extends&nbsp;<a href="../../../at/dormancy/persistence/PersistenceUnitProvider.html">PersistenceUnitProvider</a>&lt;PU,&nbsp;PC,&nbsp;PMD&gt;</nobr></td>
          <td class="jd-linkcol"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#persistenceUnitProvider">persistenceUnitProvider</a></td>
          <td class="jd-descrcol" width="100%"></td>
      </tr>
      
    
</table>
  </div>
</div>
</td></tr>




</table>




<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<table id="pubctors" class="jd-sumtable"><tr><th colspan="12">Public Constructors</th></tr>



	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            </nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#DormancyUtils(at.dormancy.persistence.HibernatePersistenceUnitProvider)">DormancyUtils</a></span>(<a href="../../../at/dormancy/persistence/HibernatePersistenceUnitProvider.html">HibernatePersistenceUnitProvider</a> persistenceUnitProvider)</nobr>
        
  </td></tr>



</table>






<!-- ========== METHOD SUMMARY =========== -->
<table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr>



	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            &lt;T&gt;
            T</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#find(java.lang.Class<T>, java.io.Serializable)">find</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;T&gt; clazz, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/io/Serializable.html">Serializable</a> id)</nobr>
        
        <div class="jd-descrdiv">Return the persistent instance of the given entity class with the given identifier, or <code>null</code> if there is
 no such persistent instance.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#flush()">flush</a></span>()</nobr>
        
        <div class="jd-descrdiv">Force the current persistence context to flush.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#getEntityName(java.lang.Class<?>)">getEntityName</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt; clazz)</nobr>
        
        <div class="jd-descrdiv">Returns the entity name of the given class.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            &lt;T&gt;
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/io/Serializable.html">Serializable</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#getIdentifier(org.hibernate.metadata.ClassMetadata, T)">getIdentifier</a></span>(ClassMetadata metadata, T bean)</nobr>
        
        <div class="jd-descrdiv">Attempts to get the identifier of the given object by using the provided persistence metadata or
 PropertyAccessor.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt;</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#getMappedClass(org.hibernate.metadata.ClassMetadata)">getMappedClass</a></span>(ClassMetadata metadata)</nobr>
        
        <div class="jd-descrdiv">Returns the persistent class, or <code>null</code>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            ClassMetadata</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#getMetadata(java.lang.Class<?>)">getMetadata</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt; clazz)</nobr>
        
        <div class="jd-descrdiv">Gets the persistence metadata associated with the given entity class.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            Session</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#getPersistenceContext()">getPersistenceContext</a></span>()</nobr>
        
        <div class="jd-descrdiv">Obtains the current persistence context.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            PropertyAccessor</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#getPropertyAccessor(org.hibernate.metadata.ClassMetadata, java.lang.Object)">getPropertyAccessor</a></span>(ClassMetadata metadata, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> obj)</nobr>
        
        <div class="jd-descrdiv">Returns a PropertyAccessor for accessing the objects properties.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt;</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#getPropertyType(java.lang.Class<?>, java.lang.String)">getPropertyType</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt; clazz, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a> propertyName)</nobr>
        
        <div class="jd-descrdiv">Returns the type of the given named property.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#getPropertyValue(org.hibernate.metadata.ClassMetadata, java.lang.Object, java.lang.String)">getPropertyValue</a></span>(ClassMetadata metadata, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> bean, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a> propertyName)</nobr>
        
        <div class="jd-descrdiv">Retrieves the property of the given object.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#getVersionPropertyName(org.hibernate.metadata.ClassMetadata)">getVersionPropertyName</a></span>(ClassMetadata metadata)</nobr>
        
        <div class="jd-descrdiv">Returns the name of the property of the entity used for versioning (if available).</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#isInitialized(java.lang.Object)">isInitialized</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> obj)</nobr>
        
        <div class="jd-descrdiv">Check if the proxy or persistent collection is initialized.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#isInitializedPersistentCollection(java.lang.Object)">isInitializedPersistentCollection</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> obj)</nobr>
        
        <div class="jd-descrdiv">Checks if the given object is an initialized persistent collection.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#isPersistentCollection(java.lang.Object)">isPersistentCollection</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> obj)</nobr>
        
        <div class="jd-descrdiv">Checks if the given object is a persistent collection.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#isProxy(java.lang.Object)">isProxy</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> obj)</nobr>
        
        <div class="jd-descrdiv">Checks if the given object is a proxy maintained by the JPA provider.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#isUninitialized(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object)">isUninitialized</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a> propertyName, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> dbObj, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> dbValue, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> trValue)</nobr>
        
        <div class="jd-descrdiv">Checks if a certain property of a JPA entity proxy is uninitialized and the corresponding value of the transient
 entity is <code>null</code>.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#isVersioned(org.hibernate.metadata.ClassMetadata)">isVersioned</a></span>(ClassMetadata metadata)</nobr>
        
        <div class="jd-descrdiv">Returns whether the Hibernate entity associated with the given metadata is versioned.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            &lt;K&gt;
            K</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#persist(java.lang.Object)">persist</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> obj)</nobr>
        
        <div class="jd-descrdiv">Persists the given transient instance.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#setPropertyValue(org.hibernate.metadata.ClassMetadata, java.lang.Object, java.lang.String, java.lang.Object)">setPropertyValue</a></span>(ClassMetadata metadata, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> bean, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a> propertyName, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> value)</nobr>
        
        <div class="jd-descrdiv">Sets the property of the given object.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/RuntimeException.html">RuntimeException</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#throwEntityNotFoundException(java.io.Serializable, java.lang.Object)">throwEntityNotFoundException</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/io/Serializable.html">Serializable</a> identifier, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> trObj)</nobr>
        
        <div class="jd-descrdiv">Throws an ObjectNotFoundException when an entity reference is accessed but the entity does not exist.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/RuntimeException.html">RuntimeException</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#throwLazyPropertyNotNullException(java.lang.Object, java.lang.Object, java.lang.String)">throwLazyPropertyNotNullException</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> trValue, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> dbObj, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a> propertyName)</nobr>
        
        <div class="jd-descrdiv">Throws a PropertyValueException when a lazy property holds a value while <code>null</code> was expected.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/RuntimeException.html">RuntimeException</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#throwNullIdentifierException(java.lang.Object)">throwNullIdentifierException</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> object)</nobr>
        
        <div class="jd-descrdiv">Throws a TransientObjectException indicating that the object has no valid identifier.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/RuntimeException.html">RuntimeException</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#throwOptimisticLockException(java.lang.Object, java.io.Serializable)">throwOptimisticLockException</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> dbValue, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/io/Serializable.html">Serializable</a> identifier)</nobr>
        
        <div class="jd-descrdiv">Throws a StaleObjectStateException when an optimistic locking conflict occurs.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/RuntimeException.html">RuntimeException</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#throwPropertyValueException(java.lang.String, java.lang.Object)">throwPropertyValueException</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a> message, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> bean)</nobr>
        
        <div class="jd-descrdiv">Throws a PropertyValueException when a property is not accessible or holds an unexpected value.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/RuntimeException.html">RuntimeException</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#throwUnsavedTransientInstanceException(java.lang.Object)">throwUnsavedTransientInstanceException</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> object)</nobr>
        
        <div class="jd-descrdiv">Throws a TransientObjectException indicating that the object must be saved manually before continuing.</div>
  
  </td></tr>



</table>




<!-- ========== METHOD SUMMARY =========== -->
<table id="promethods" class="jd-sumtable"><tr><th colspan="12">Protected Methods</th></tr>



	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="../../../at/dormancy/access/AbstractPropertyAccessStrategy.html">AbstractPropertyAccessStrategy</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#createStrategy(java.lang.Class<?>)">createStrategy</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt; clazz)</nobr>
        
        <div class="jd-descrdiv">Creates a new <code><a href="../../../at/dormancy/access/AbstractPropertyAccessStrategy.html">AbstractPropertyAccessStrategy</a></code> instance for the given type.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/DormancyUtils.html#getIdentifierPropertyName(java.lang.Class<?>)">getIdentifierPropertyName</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt; clazz)</nobr>
        
        <div class="jd-descrdiv">Returns the name of the identifier property of the given type.</div>
  
  </td></tr>



</table>





<!-- ========== METHOD SUMMARY =========== -->
<table id="inhmethods" class="jd-sumtable"><tr><th>
  <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a>
  <div style="clear:left;">Inherited Methods</div></th></tr>


<tr class="api apilevel-" >
<td colspan="12">
  <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-at.dormancy.util.AbstractDormancyUtils" class="jd-expando-trigger closed"
          ><img id="inherited-methods-at.dormancy.util.AbstractDormancyUtils-trigger"
          src="../../../../assets/images/triangle-closed.png"
          class="jd-expando-trigger-img" /></a>
From class

  <a href="../../../at/dormancy/util/AbstractDormancyUtils.html">at.dormancy.util.AbstractDormancyUtils</a>

<div id="inherited-methods-at.dormancy.util.AbstractDormancyUtils">
  <div id="inherited-methods-at.dormancy.util.AbstractDormancyUtils-list"
        class="jd-inheritedlinks">
  </div>
  <div id="inherited-methods-at.dormancy.util.AbstractDormancyUtils-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="../../../at/dormancy/access/AbstractPropertyAccessStrategy.html">AbstractPropertyAccessStrategy</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#createStrategy(java.lang.Class<?>)">createStrategy</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt; clazz)</nobr>
        
        <div class="jd-descrdiv">Creates a new <code><a href="../../../at/dormancy/access/AbstractPropertyAccessStrategy.html">AbstractPropertyAccessStrategy</a></code> instance for the given type.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            &lt;T&gt;
            T</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#find(java.lang.Class<T>, java.io.Serializable)">find</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;T&gt; clazz, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/io/Serializable.html">Serializable</a> id)</nobr>
        
        <div class="jd-descrdiv">Return the persistent instance of the given entity class with the given identifier, or <code>null</code> if there is
 no such persistent instance.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            &lt;T&gt;
            T</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#findPendant(T, java.util.Collection<?>)">findPendant</a></span>(T obj, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/util/Collection.html">Collection</a>&lt;?&gt; collection)</nobr>
        
        <div class="jd-descrdiv">Iterates over the given collection, looking for an object which is semantically equal to a certain object.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#flush()">flush</a></span>()</nobr>
        
        <div class="jd-descrdiv">Force the current persistence context to flush.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            &lt;T&gt;
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;T&gt;</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#getClass(java.lang.Object)">getClass</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> proxy)</nobr>
        
        <div class="jd-descrdiv">Gets the unproxified type of the given object.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            &lt;T&gt;
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;T&gt;</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#getClass(java.lang.Class<?>)">getClass</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt; clazz)</nobr>
        
        <div class="jd-descrdiv">Gets the real type of the given class.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#getEntityName(java.lang.Class<?>)">getEntityName</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt; clazz)</nobr>
        
        <div class="jd-descrdiv">Returns the entity name of the given class.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            &lt;T&gt;
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/io/Serializable.html">Serializable</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#getIdentifier(PMD, T)">getIdentifier</a></span>(PMD metadata, T bean)</nobr>
        
        <div class="jd-descrdiv">Attempts to get the identifier of the given object by using the provided persistence metadata or
 PropertyAccessor.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#getIdentifierPropertyName(java.lang.Class<?>)">getIdentifierPropertyName</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt; clazz)</nobr>
        
        <div class="jd-descrdiv">Returns the name of the identifier property of the given type.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            &lt;T&gt;
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/io/Serializable.html">Serializable</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#getIdentifierValue(PMD, T)">getIdentifierValue</a></span>(PMD metadata, T bean)</nobr>
        
        <div class="jd-descrdiv">Retrieves the identifier of the given object by using the provided persistence metadata or
 PropertyAccessor.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt;</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#getMappedClass(PMD)">getMappedClass</a></span>(PMD metadata)</nobr>
        
        <div class="jd-descrdiv">Returns the persistent class, or <code>null</code>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            PMD</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#getMetadata(java.lang.Object)">getMetadata</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> obj)</nobr>
        
        <div class="jd-descrdiv">Gets the persistence metadata associated with the given entity class.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            PMD</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#getMetadata(java.lang.Class<?>)">getMetadata</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt; clazz)</nobr>
        
        <div class="jd-descrdiv">Gets the persistence metadata associated with the given entity class.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            PC</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#getPersistenceContext()">getPersistenceContext</a></span>()</nobr>
        
        <div class="jd-descrdiv">Obtains the current persistence context.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="../../../at/dormancy/access/AbstractPropertyAccessStrategy.html">AbstractPropertyAccessStrategy</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#getPropertyAccessStrategy(java.lang.Class<?>)">getPropertyAccessStrategy</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt; clazz)</nobr>
        
        <div class="jd-descrdiv">Returns the <code><a href="../../../at/dormancy/access/AbstractPropertyAccessStrategy.html">AbstractPropertyAccessStrategy</a></code> to use for accessing properties of the given type.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            PropertyAccessor</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#getPropertyAccessor(PMD, java.lang.Object)">getPropertyAccessor</a></span>(PMD metadata, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> obj)</nobr>
        
        <div class="jd-descrdiv">Returns a PropertyAccessor for accessing the objects properties.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String[]</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#getPropertyNames(java.lang.Object)">getPropertyNames</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> obj)</nobr>
        
        <div class="jd-descrdiv">Returns the property names of the given object.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt;</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#getPropertyType(java.lang.Class<?>, java.lang.String)">getPropertyType</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt; clazz, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a> propertyName)</nobr>
        
        <div class="jd-descrdiv">Returns the type of the given named property.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#getPropertyValue(PMD, java.lang.Object, java.lang.String)">getPropertyValue</a></span>(PMD metadata, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> bean, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a> propertyName)</nobr>
        
        <div class="jd-descrdiv">Retrieves the property of the given object.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#getVersionPropertyName(PMD)">getVersionPropertyName</a></span>(PMD metadata)</nobr>
        
        <div class="jd-descrdiv">Returns the name of the property of the entity used for versioning (if available).</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#isInitialized(java.lang.Object)">isInitialized</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> obj)</nobr>
        
        <div class="jd-descrdiv">Check if the proxy or persistent collection is initialized.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#isInitializedPersistentCollection(java.lang.Object)">isInitializedPersistentCollection</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> obj)</nobr>
        
        <div class="jd-descrdiv">Checks if the given object is an initialized persistent collection.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#isJavassistProxy(java.lang.Class<?>)">isJavassistProxy</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt; clazz)</nobr>
        
        <div class="jd-descrdiv">Checks if the given class is a proxy of a persistent object that has been generated by using Javassist.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#isPersistentCollection(java.lang.Object)">isPersistentCollection</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> obj)</nobr>
        
        <div class="jd-descrdiv">Checks if the given object is a persistent collection.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#isProxy(java.lang.Object)">isProxy</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> obj)</nobr>
        
        <div class="jd-descrdiv">Checks if the given object is a proxy maintained by the JPA provider.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#isTransient(java.lang.Object, java.lang.String)">isTransient</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> obj, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a> propertyName)</nobr>
        
        <div class="jd-descrdiv">Checks if the named property is transient.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#isUninitialized(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object)">isUninitialized</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a> propertyName, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> dbObj, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> dbValue, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> trValue)</nobr>
        
        <div class="jd-descrdiv">Checks if a certain property of a JPA entity proxy is uninitialized and the corresponding value of the transient
 entity is <code>null</code>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#isVersioned(PMD)">isVersioned</a></span>(PMD metadata)</nobr>
        
        <div class="jd-descrdiv">Returns whether the Hibernate entity associated with the given metadata is versioned.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            &lt;K&gt;
            K</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#persist(java.lang.Object)">persist</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> obj)</nobr>
        
        <div class="jd-descrdiv">Persists the given transient instance.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#setPropertyValue(PMD, java.lang.Object, java.lang.String, java.lang.Object)">setPropertyValue</a></span>(PMD metadata, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> bean, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a> propertyName, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> value)</nobr>
        
        <div class="jd-descrdiv">Sets the property of the given object.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/RuntimeException.html">RuntimeException</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#throwEntityNotFoundException(java.io.Serializable, java.lang.Object)">throwEntityNotFoundException</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/io/Serializable.html">Serializable</a> identifier, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> trObj)</nobr>
        
        <div class="jd-descrdiv">Throws an exception when an entity reference is accessed but the entity does not exist.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/RuntimeException.html">RuntimeException</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#throwLazyPropertyNotNullException(java.lang.Object, java.lang.Object, java.lang.String)">throwLazyPropertyNotNullException</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> trValue, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> dbObj, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a> propertyName)</nobr>
        
        <div class="jd-descrdiv">Throws an exception when a lazy property holds a value while <code>null</code> was expected.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/RuntimeException.html">RuntimeException</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#throwNullIdentifierException(java.lang.Object)">throwNullIdentifierException</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> object)</nobr>
        
        <div class="jd-descrdiv">Throws an exception indicating that the object has no valid identifier.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/RuntimeException.html">RuntimeException</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#throwOptimisticLockException(java.lang.Object, java.io.Serializable)">throwOptimisticLockException</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> dbValue, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/io/Serializable.html">Serializable</a> identifier)</nobr>
        
        <div class="jd-descrdiv">Throws an exception when an optimistic locking conflict occurs.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/RuntimeException.html">RuntimeException</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#throwPropertyValueException(java.lang.String, java.lang.Object)">throwPropertyValueException</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a> message, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> bean)</nobr>
        
        <div class="jd-descrdiv">Throws an exception when a property is not accessible or holds an unexpected value.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/RuntimeException.html">RuntimeException</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../at/dormancy/util/AbstractDormancyUtils.html#throwUnsavedTransientInstanceException(java.lang.Object)">throwUnsavedTransientInstanceException</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> object)</nobr>
        
        <div class="jd-descrdiv">Throws an exception indicating that the object must be saved manually before continuing.</div>
  
  </td></tr>


</table>
  </div>
</div>
</td></tr>



<tr class="api apilevel-" >
<td colspan="12">
  <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed"
          ><img id="inherited-methods-java.lang.Object-trigger"
          src="../../../../assets/images/triangle-closed.png"
          class="jd-expando-trigger-img" /></a>
From class

  <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">java.lang.Object</a>

<div id="inherited-methods-java.lang.Object">
  <div id="inherited-methods-java.lang.Object-list"
        class="jd-inheritedlinks">
  </div>
  <div id="inherited-methods-java.lang.Object-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">clone</span>()</nobr>
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">equals</span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> arg0)</nobr>
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">finalize</span>()</nobr>
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt;</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">getClass</span>()</nobr>
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">hashCode</span>()</nobr>
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">notify</span>()</nobr>
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">notifyAll</span>()</nobr>
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">toString</span>()</nobr>
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">wait</span>()</nobr>
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">wait</span>(long arg0, int arg1)</nobr>
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">wait</span>(long arg0)</nobr>
        
  </td></tr>


</table>
  </div>
</div>
</td></tr>


</table>


</div><!-- jd-descr (summary) -->

<!-- Details -->








<!-- XML Attributes -->


<!-- Enum Values -->


<!-- Constants -->


<!-- Fields -->


<!-- Public ctors -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->
<h2>Public Constructors</h2>



<A NAME="DormancyUtils(at.dormancy.persistence.HibernatePersistenceUnitProvider)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        
      </span>
      <span class="sympad">DormancyUtils</span>
      <span class="normal">(<a href="../../../at/dormancy/persistence/HibernatePersistenceUnitProvider.html">HibernatePersistenceUnitProvider</a> persistenceUnitProvider)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>





<!-- ========= CONSTRUCTOR DETAIL ======== -->
<!-- Protected ctors -->



<!-- ========= METHOD DETAIL ======== -->
<!-- Public methdos -->

<h2>Public Methods</h2>



<A NAME="find(java.lang.Class<T>, java.io.Serializable)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        T
      </span>
      <span class="sympad">find</span>
      <span class="normal">(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;T&gt; clazz, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/io/Serializable.html">Serializable</a> id)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Return the persistent instance of the given entity class with the given identifier, or <code>null</code> if there is
 no such persistent instance.<br/>
 If the instance is already associated with the persistence context, return that instance.
 This method never returns an uninitialized instance.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>clazz</td>
          <td>the persistent class</td>
        </tr>
        <tr>
          <th>id</td>
          <td>the identifier</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>the persistent instance
</li></ul>
  </div>

    </div>
</div>


<A NAME="flush()"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">flush</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Force the current persistence context to flush.
 <p/>
 <i>Flushing</i> is the process of synchronizing the underlying persistent store with persistable state held in
 memory.
</p></div>

    </div>
</div>


<A NAME="getEntityName(java.lang.Class<?>)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a>
      </span>
      <span class="sympad">getEntityName</span>
      <span class="normal">(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt; clazz)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Returns the entity name of the given class.<br/>
 The entity name is the unique name of the entity in the meta-model or the simple class name if the type is not
 known by the meta-model.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>clazz</td>
          <td>the type</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>the entity name of the class
</li></ul>
  </div>

    </div>
</div>


<A NAME="getIdentifier(org.hibernate.metadata.ClassMetadata, T)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/io/Serializable.html">Serializable</a>
      </span>
      <span class="sympad">getIdentifier</span>
      <span class="normal">(ClassMetadata metadata, T bean)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Attempts to get the identifier of the given object by using the provided persistence metadata or
 PropertyAccessor.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>metadata</td>
          <td>the ClassMetadata of the object (may be null)</td>
        </tr>
        <tr>
          <th>bean</td>
          <td>the object</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>the identifier or <code>null</code> if the identifier cannot be retrieved or is <code>null</code></li></ul>
  </div>

    </div>
</div>


<A NAME="getMappedClass(org.hibernate.metadata.ClassMetadata)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt;
      </span>
      <span class="sympad">getMappedClass</span>
      <span class="normal">(ClassMetadata metadata)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Returns the persistent class, or <code>null</code>.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>metadata</td>
          <td>the class metadata</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>the persistent class, or <code>null</code>
</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="../../../null#getMappedClass()">getMappedClass()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<A NAME="getMetadata(java.lang.Class<?>)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        ClassMetadata
      </span>
      <span class="sympad">getMetadata</span>
      <span class="normal">(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt; clazz)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Gets the persistence metadata associated with the given entity class.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>clazz</td>
          <td>the type to retrieve ClassMetadata for</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>the ClassMetadata or <code>null</code> if the type is not an Hibernate managed entity
</li></ul>
  </div>

    </div>
</div>


<A NAME="getPersistenceContext()"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        Session
      </span>
      <span class="sympad">getPersistenceContext</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Obtains the current persistence context.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>the persistence context to use
</li></ul>
  </div>

    </div>
</div>


<A NAME="getPropertyAccessor(org.hibernate.metadata.ClassMetadata, java.lang.Object)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        PropertyAccessor
      </span>
      <span class="sympad">getPropertyAccessor</span>
      <span class="normal">(ClassMetadata metadata, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> obj)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Returns a PropertyAccessor for accessing the objects properties.
 <p/>
 This method automatically detects the best strategy for accessing field values, which is either property access
 (by using org.springframework.beans.BeanWrapper BeanWrapper or field access (by using
 org.springframework.beans.DirectFieldAccessor DirectFieldAccessor.
 <p/>
 The decision is made by applying the following algorithm:<br/>
 If there is persistence metadata available and
 <ul>
 <li>if the <code>javax.persistence.Id</code> annotation was found on a getter method or</li>
 <li>if the object is a proxy modified by Javassist and its but it is not accessible</li>
 </ul>
 the properties are access via getter and setter methods.<br/>
 Otherwise the fields are accessed directly via reflection.
 <p/>
 <b>Note that if the given object is an uninitialized Javassist proxy, the object becomes initialized immediately
 if the direct field access strategy is chosen.<br/>
 Otherwise Hibernate will trigger the initialization automatically upon getter invocation as usual.</b></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>metadata</td>
          <td>the class metadata</td>
        </tr>
        <tr>
          <th>obj</td>
          <td>the object</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>the property accessor
</li></ul>
  </div>

    </div>
</div>


<A NAME="getPropertyType(java.lang.Class<?>, java.lang.String)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt;
      </span>
      <span class="sympad">getPropertyType</span>
      <span class="normal">(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt; clazz, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a> propertyName)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Returns the type of the given named property.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>clazz</td>
          <td>the class containing the property</td>
        </tr>
        <tr>
          <th>propertyName</td>
          <td>the name of the property</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>the type of the property
</li></ul>
  </div>

    </div>
</div>


<A NAME="getPropertyValue(org.hibernate.metadata.ClassMetadata, java.lang.Object, java.lang.String)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a>
      </span>
      <span class="sympad">getPropertyValue</span>
      <span class="normal">(ClassMetadata metadata, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> bean, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a> propertyName)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Retrieves the property of the given object.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>metadata</td>
          <td>the ClassMetadata of the object (may be null)</td>
        </tr>
        <tr>
          <th>bean</td>
          <td>the object</td>
        </tr>
        <tr>
          <th>propertyName</td>
          <td>the name of the property</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>the property</li></ul>
  </div>

    </div>
</div>


<A NAME="getVersionPropertyName(org.hibernate.metadata.ClassMetadata)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a>
      </span>
      <span class="sympad">getVersionPropertyName</span>
      <span class="normal">(ClassMetadata metadata)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Returns the name of the property of the entity used for versioning (if available).</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>metadata</td>
          <td>the metadata</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>the name of the version property or <code>null</code> if the entity is not versioned
</li></ul>
  </div>

    </div>
</div>


<A NAME="isInitialized(java.lang.Object)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">isInitialized</span>
      <span class="normal">(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> obj)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Check if the proxy or persistent collection is initialized.<br/>
 If the objects is neither an entity nor a persistent collection e.g., a <code><a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a></code>, <code>true</code> is returned.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>obj</td>
          <td>the object to check</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li><code>true</code> if the argument is already initialized, or is not a proxy or collection
</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="../../../null#isInitialized(java.lang.Object)">isInitialized(Object)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<A NAME="isInitializedPersistentCollection(java.lang.Object)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">isInitializedPersistentCollection</span>
      <span class="normal">(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> obj)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Checks if the given object is an initialized persistent collection.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>obj</td>
          <td>the object to check</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li><code>true</code> if the object is an initialized persistent collection, <code>false</code> otherwise</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="../../../null#wasInitialized()">wasInitialized()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<A NAME="isPersistentCollection(java.lang.Object)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">isPersistentCollection</span>
      <span class="normal">(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> obj)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Checks if the given object is a persistent collection.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>obj</td>
          <td>the object to check</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li><code>true</code> if the object is a persistent collection, <code>false</code> otherwise</li></ul>
  </div>

    </div>
</div>


<A NAME="isProxy(java.lang.Object)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">isProxy</span>
      <span class="normal">(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> obj)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Checks if the given object is a proxy maintained by the JPA provider.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>obj</td>
          <td>the object to check</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li><code>true</code> if the object is a JPA entity proxy, <code>false</code> otherwise</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="../../../at/dormancy/util/DormancyUtils.html#isInitialized(java.lang.Object)">isInitialized(Object)</a></code></li><li>HibernateProxy</li>
      </ul>
  </div>

    </div>
</div>


<A NAME="isUninitialized(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">isUninitialized</span>
      <span class="normal">(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a> propertyName, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> dbObj, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> dbValue, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> trValue)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Checks if a certain property of a JPA entity proxy is uninitialized and the corresponding value of the transient
 entity is <code>null</code>.<br/>
 If the property of the persistent entity is uninitialized, it is assumed to be loaded lazily. Thus the property
 of the transient entity must be <code>null</code>. If is is not, an exception is thrown.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>propertyName</td>
          <td>the name of the property to check</td>
        </tr>
        <tr>
          <th>dbObj</td>
          <td>the persistent entity</td>
        </tr>
        <tr>
          <th>dbValue</td>
          <td>the value of the persistent entity</td>
        </tr>
        <tr>
          <th>trValue</td>
          <td>the value of the transient entity</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li><code>true</code> if it is uninitialized, <code>false</code> otherwise</li></ul>
  </div>

    </div>
</div>


<A NAME="isVersioned(org.hibernate.metadata.ClassMetadata)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">isVersioned</span>
      <span class="normal">(ClassMetadata metadata)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Returns whether the Hibernate entity associated with the given metadata is versioned.<br/></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>metadata</td>
          <td>the metadata</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>true
</li></ul>
  </div>

    </div>
</div>


<A NAME="persist(java.lang.Object)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        K
      </span>
      <span class="sympad">persist</span>
      <span class="normal">(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> obj)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Persists the given transient instance.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>obj</td>
          <td>a transient instance of a persistent class</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>the generated identifier
</li></ul>
  </div>

    </div>
</div>


<A NAME="setPropertyValue(org.hibernate.metadata.ClassMetadata, java.lang.Object, java.lang.String, java.lang.Object)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setPropertyValue</span>
      <span class="normal">(ClassMetadata metadata, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> bean, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a> propertyName, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> value)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Sets the property of the given object.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>metadata</td>
          <td>the ClassMetadata of the object (may be null)</td>
        </tr>
        <tr>
          <th>bean</td>
          <td>the object</td>
        </tr>
        <tr>
          <th>propertyName</td>
          <td>the name of the property</td>
        </tr>
        <tr>
          <th>value</td>
          <td>the value to set</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<A NAME="throwEntityNotFoundException(java.io.Serializable, java.lang.Object)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/RuntimeException.html">RuntimeException</a>
      </span>
      <span class="sympad">throwEntityNotFoundException</span>
      <span class="normal">(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/io/Serializable.html">Serializable</a> identifier, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> trObj)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Throws an ObjectNotFoundException when an entity reference is accessed but the entity does not exist.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>identifier</td>
          <td>the identifier of the entity attempted to retrieve</td>
        </tr>
        <tr>
          <th>trObj</td>
          <td>the transient object</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>nothing</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tr>
            <th>ObjectNotFoundException</td>
            <td>the exception
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<A NAME="throwLazyPropertyNotNullException(java.lang.Object, java.lang.Object, java.lang.String)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/RuntimeException.html">RuntimeException</a>
      </span>
      <span class="sympad">throwLazyPropertyNotNullException</span>
      <span class="normal">(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> trValue, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> dbObj, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a> propertyName)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Throws a PropertyValueException when a lazy property holds a value while <code>null</code> was expected.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>trValue</td>
          <td>the transient value (that should be <code>null</code>)</td>
        </tr>
        <tr>
          <th>dbObj</td>
          <td>the persistent entity</td>
        </tr>
        <tr>
          <th>propertyName</td>
          <td>the name of the property</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>nothing</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tr>
            <th>PropertyValueException</td>
            <td>the exception
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<A NAME="throwNullIdentifierException(java.lang.Object)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/RuntimeException.html">RuntimeException</a>
      </span>
      <span class="sympad">throwNullIdentifierException</span>
      <span class="normal">(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> object)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Throws a TransientObjectException indicating that the object has no valid identifier.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>object</td>
          <td>the object</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>nothing</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tr>
            <th>TransientObjectException</td>
            <td>the exception
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<A NAME="throwOptimisticLockException(java.lang.Object, java.io.Serializable)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/RuntimeException.html">RuntimeException</a>
      </span>
      <span class="sympad">throwOptimisticLockException</span>
      <span class="normal">(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> dbValue, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/io/Serializable.html">Serializable</a> identifier)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Throws a StaleObjectStateException when an optimistic locking conflict occurs.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>dbValue</td>
          <td>the persistent value causing the conflict</td>
        </tr>
        <tr>
          <th>identifier</td>
          <td>the identifier of the entity</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>nothing</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tr>
            <th>StaleObjectStateException</td>
            <td>the exception
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<A NAME="throwPropertyValueException(java.lang.String, java.lang.Object)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/RuntimeException.html">RuntimeException</a>
      </span>
      <span class="sympad">throwPropertyValueException</span>
      <span class="normal">(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a> message, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> bean)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Throws a PropertyValueException when a property is not accessible or holds an unexpected value.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>message</td>
          <td>the detail message</td>
        </tr>
        <tr>
          <th>bean</td>
          <td>the bean caused the exception</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>nothing</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tr>
            <th>PropertyValueException</td>
            <td>the exception
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<A NAME="throwUnsavedTransientInstanceException(java.lang.Object)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/RuntimeException.html">RuntimeException</a>
      </span>
      <span class="sympad">throwUnsavedTransientInstanceException</span>
      <span class="normal">(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> object)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Throws a TransientObjectException indicating that the object must be saved manually before continuing.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>object</td>
          <td>the object</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>nothing</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tr>
            <th>TransientObjectException</td>
            <td>the exception
</td>
        </tr>
      </table>
  </div>

    </div>
</div>





<!-- ========= METHOD DETAIL ======== -->

<h2>Protected Methods</h2>



<A NAME="createStrategy(java.lang.Class<?>)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        <a href="../../../at/dormancy/access/AbstractPropertyAccessStrategy.html">AbstractPropertyAccessStrategy</a>
      </span>
      <span class="sympad">createStrategy</span>
      <span class="normal">(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt; clazz)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Creates a new <code><a href="../../../at/dormancy/access/AbstractPropertyAccessStrategy.html">AbstractPropertyAccessStrategy</a></code> instance for the given type.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>clazz</td>
          <td>the type</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>the strategy to use
</li></ul>
  </div>

    </div>
</div>


<A NAME="getIdentifierPropertyName(java.lang.Class<?>)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a>
      </span>
      <span class="sympad">getIdentifierPropertyName</span>
      <span class="normal">(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt; clazz)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Returns the name of the identifier property of the given type.<br/>
 If the type has no identifier property e.g., it is not an entity, <code>null</code> is returned instead.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>clazz</td>
          <td>the type</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>the identifier property name or <code>null</code> if there is no identifier property
</li></ul>
  </div>

    </div>
</div>





<!-- ========= END OF CLASS DATA ========= -->
<A NAME="navbar_top"></A>

<div id="footer">
Generated by <a href="http://code.google.com/p/doclava/">Doclava</a>.
</div> <!-- end footer -->

</div> <!-- jd-content -->

</div><!-- end doc-content -->

</div> <!-- end body-content --> 

<script type="text/javascript">
init(); /* initialize doclava-developer-docs.js */
</script>

</body>
</html>
